package com.hopu.mybatis01.mapper;

import com.hopu.mybatis01.pojo.User1;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

public interface UserMapper1 {
    //查询全部

    List<User1> selectUsers(String name,String phone);
    //添加
    @Insert("insert into zy(name,phone) values(#{name},#{phone}) ")
    void insert(User1 user1);
    //修改
//    @Update("update zy set username=#{username},password=#{password} where id=#{id}")
    void update(User1 user1);
    //删除
//    @Delete("delete from zy where id=#{id}")
    void deleteById(Long id);
}
